﻿@model Projeto.Models.CodigoQR

@{
    ViewBag.Title = "Consultar";
}

<h2>Consultar</h2>

<fieldset>
    <legend>CodigoQR</legend>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Nome)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Nome)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Valor)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Valor)
    </div>


    <div class="display-label">
        Imagem
    </div>
    <div class="display-field">
        <img src="@Url.Action("GetQRCode", new { id = Model.Id })"  />  
    </div>


</fieldset>
<p>
    @Html.ActionLink("Alterar", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Excluir", "Delete", new { id = Model.Id }) |
    @Html.ActionLink("Voltar", "Index")
</p>
